<?php
$weishu = $_POST['weishu'];
$jo = $_POST['jo'];
$geshu = $_POST['geshu'];

echo "按要求生成".$geshu."个".$weishu."位".($jo?"奇数":"偶数").":<br>";
$i=0;
while($i<$geshu){
	$num = rand(pow(10,$weishu-1),pow(10,$weishu)-1);
	if($num%2 == $jo){
		echo $num."<br>";
		$i++;
	}
}
?>